<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<style>
    *{
        margin: 0px;
        padding: 0px;
    }
    body{
        perspective: 500px;
    }
    .box{
        width:500px ;
        height: 300px;
        margin: 100px auto;
        position: relative;
        transform-style: preserve-3d;
        transform:rotateX(-40deg);
        animation:dohua  5s  linear 0s infinite;
    }
    .box img{
        width: 100%;
        position: absolute;
        top: 0px;
    }
    @keyframes dohua{
        from{
            transform:rotateX(-40deg) rotateY(0deg);
        }
        to{
            transform:rotateX(-40deg) rotateY(360deg);
        }
    }
</style>
<body>
    <div class="box">
        <img src="./1.jpg" alt="">
        <img src="./2.jpg" alt="">
        <img src="./3.jpg" alt="">
        <img src="./4.jpg" alt="">
        <img src="./5.jpg" alt="">
        <img src="./6.jpg" alt="">
    </div>

    <script>
        let img =document.getElementsByTagName("img")
        for(var i=0;i<=img.length;i++){
            img[i].style. transform=`rotate3d(0,1,0,${50*i}deg)`
        }
    </script>

</body>
</html>